
//var obj = {"name":"木蝴蝶","id":,"position_x": 1,"position_y":1};
//var str = "name,id,x,y,effect";
//var json = JSON.stringify(obj);


				
//初始化药柜

//loding为0是未初始化，为1是已初始化
//localStorage.removeItem("name_str");
function initialis_li(){
	var a = [
		{
			id: "10320",
			name: "木蝴蝶(千层纸)",
			x: 1,
			y: 1,
		},
		{
			id: "10044",
			name: "龙胆",
			x: 1,
			y: 2,
		},
		{
			id: "10028",
			name: "天花粉",
			x: 1,
			y: 3,
		},
		{
			id: "9860",
			name: "青果(白榄)",
			x: 1,
			y: 4,
		},
		{
			id: "10138",
			name: "大青叶",
			x: 1,
			y: 5,
		},
		{
			id: "10049",
			name: "竹茹",
			x: 1,
			y: 6,
		},
		{
			id: "9791",
			name: "皂角刺",
			x: 1,
			y: 7,
		},
		{
			id: "10033",
			name: "桑枝",
			x: 1,
			y: 8,
		},
		{
			id: "10213",
			name: "冬瓜子",
			x: 1,
			y: 9,
		},
		{
			id: "9899",
			name: "防已",
			x: 1,
			y: 10,
		},
		{
			id: "12028",
			name: "草果",
			x: 1,
			y: 11,
		},
		{
			id: "12029",
			name: "诃子",
			x: 1,
			y: 12,
		},
		{
			id: "10229",
			name: "沙宛子",
			x: 1,
			y: 13,
		},
		{
			id: "12052",
			name: "醋龟甲",
			x: 1,
			y: 14,
		},
		{
			id: "10367",
			name: "石斛",
			x: 1,
			y: 15,
		},
		{
			id: "9835",
			name: "仙茅",
			x: 1,
			y: 16,
		},
		{
			id: "9892",
			name: "石斛(小环钗)",
			x: 1,
			y: 17,
		},
		{
			id: "10211",
			name: "白胡椒",
			x: 1,
			y: 18,
		},
		{
			id: "11996",
			name: "韭白",
			x: 1,
			y: 19,
		},
		{
			id: "10159",
			name: "王不留行",
			x: 1,
			y: 20,
		},
		{
			id: "11991",
			name: "白及",
			x: 1,
			y: 21,
		},
		{
			id: "10118",
			name: "合欢花",
			x: 1,
			y: 22,
		},
		{
			id: "12015",
			name: "合欢皮",
			x: 1,
			y: 23,
		},
		{
			id: "9879",
			name: "制远志",
			x: 1,
			y: 24,
		},
	];

	var b = [
		{
			id: "10145",
			name: "辛夷",
			x: 2,
			y: 1,
		},
		{
			id: "10148",
			name: "荆芥穗",
			x: 2,
			y: 2,
		},
		{
			id: "10137",
			name: "紫苏叶",
			x: 2,
			y: 3,
		},
		{
			id: "10311",
			name: "蔓荆子(京子)",
			x: 2,
			y: 4,
		},
		{
			id: "9846",
			name: "重楼",
			x: 2,
			y: 5,
		},
		{
			id: "10030",
			name: "紫苑",
			x: 2,
			y: 6,
		},
		{
			id: "10324",
			name: "介子",
			x: 2,
			y: 7,
		},
		{
			id: "9936",
			name: "络石藤",
			x: 2,
			y: 8,
		},
		{
			id: "10365",
			name: "瞿麦",
			x: 2,
			y: 9,
		},
		{
			id: "10173",
			name: "豆蔻",
			x: 2,
			y: 10,
		},
		{
			id: "10298",
			name: "丝瓜络",
			x: 2,
			y: 11,
		},
		{
			id: "10465",
			name: "桑螵蛸",
			x: 2,
			y: 12,
		},
		{
			id: "10066",
			name: "锁阳",
			x: 2,
			y: 13,
		},
		{
			id: "10315",
			name: "益智",
			x: 2,
			y: 14,
		},
		{
			id: "10051",
			name: "天冬",
			x: 2,
			y: 15,
		},
		{
			id: "9806",
			name: "玉竹",
			x: 2,
			y: 16,
		},
		{
			id: "10057",
			name: "五指毛桃(五爪龙)",
			x: 2,
			y: 17,
		},
		{
			id: "10202",
			name: "八角茴香",
			x: 2,
			y: 18,
		},
		{
			id: "10100",
			name: "丁香",
			x: 2,
			y: 19,
		},
		{
			id: "10445",
			name: "醋没药",
			x: 2,
			y: 20,
		},
		{
			id: "9828",
			name: "地榆",
			x: 2,
			y: 21,
		},
		{
			id: "9750",
			name: "天麻",
			x: 2,
			y: 22,
		},
		{
			id: "10037",
			name: "石菖蒲",
			x: 2,
			y: 23,
		},
		{
			id: "9893",
			name: "远志",
			x: 2,
			y: 24,
		},
	];

	var c = [
		{
			id: "9761",
			name: "地骨皮",
			x: 3,
			y: 1,
		},
		{
			id: "9924",
			name: "黄连",
			x: 3,
			y: 2,
		},
		{
			id: "10151",
			name: "苍耳子",
			x: 3,
			y: 3,
		},
		{
			id: "10425",
			name: "青蒿",
			x: 3,
			y: 4,
		},
		{
			id: "9768",
			name: "藁本",
			x: 3,
			y: 5,
		},
		{
			id: "10097",
			name: "款冬花",
			x: 3,
			y: 6,
		},
		{
			id: "10441",
			name: "昆布",
			x: 3,
			y: 7,
		},
		{
			id: "10339",
			name: "萹蓄",
			x: 3,
			y: 8,
		},
		{
			id: "10422",
			name: "佩兰",
			x: 3,
			y: 9,
		},
		{
			id: "9813",
			name: "猪苓",
			x: 3,
			y: 10,
		},
		{
			id: "10061",
			name: "川木通",
			x: 3,
			y: 11,
		},
		{
			id: "10169",
			name: "覆盆子",
			x: 3,
			y: 12,
		},
		{
			id: "10301",
			name: "补骨脂",
			x: 3,
			y: 13,
		},
		{
			id: "9822",
			name: "骨碎补",
			x: 3,
			y: 14,
		},
		{
			id: "9749",
			name: "太子参",
			x: 3,
			y: 15,
		},
		{
			id: "10023",
			name: "北沙参",
			x: 3,
			y: 16,
		},
		{
			id: "10185",
			name: "炒扁豆",
			x: 3,
			y: 17,
		},
		{
			id: "10180",
			name: "小茴香",
			x: 3,
			y: 18,
		},
		{
			id: "10306",
			name: "青皮",
			x: 3,
			y: 19,
		},
		{
			id: "10448",
			name: "醋乳香",
			x: 3,
			y: 20,
		},
		{
			id: "10423",
			name: "泽兰",
			x: 3,
			y: 21,
		},
		{
			id: "9850",
			name: "姜黄",
			x: 3,
			y: 22,
		},
		{
			id: "10316",
			name: "蒺藜",
			x: 3,
			y: 23,
		},
		{
			id: "10206",
			name: "槟榔",
			x: 3,
			y: 24,
		},
	];
	
	var d = [
		{
			id: "10305",
			name: "牛蒡子",
			x: 4,
			y: 1,
		},
		{
			id: "10460",
			name: "蝉蜕",
			x: 4,
			y: 2,
		},
		{
			id: "12014",
			name: "羌活",
			x: 4,
			y: 3,
		},
		{
			id: "10104",
			name: "葛花",
			x: 4,
			y: 4,
		},
		{
			id: "10431",
			name: "荆芥",
			x: 4,
			y: 5,
		},
		{
			id: "9770",
			name: "制白附",
			x: 4,
			y: 6,
		},
		{
			id: "10410",
			name: "胆南星(四川千方)",
			x: 4,
			y: 7,
		},
		{
			id: "9984",
			name: "通草",
			x: 4,
			y: 8,
		},
		{
			id: "9753",
			name: "虎杖",
			x: 4,
			y: 9,
		},
		{
			id: "10302",
			name: "路路通",
			x: 4,
			y: 10,
		},
		{
			id: "10048",
			name: "秦艽",
			x: 4,
			y: 11,
		},
		{
			id: "10512",
			name: "海螵蛸",
			x: 4,
			y: 12,
		},
		{
			id: "10056",
			name: "牛大力",
			x: 4,
			y: 13,
		},
		{
			id: "10328",
			name: "女贞子",
			x: 4,
			y: 14,
		},
		{
			id: "9747",
			name: "白芍",
			x: 4,
			y: 15,
		},
		{
			id: "10323",
			name: "白扁豆",
			x: 4,
			y: 16,
		},
		{
			id: "9744",
			name: "山药",
			x: 4,
			y: 17,
		},
		{
			id: "10152",
			name: "花椒",
			x: 4,
			y: 18,
		},
		{
			id: "10154",
			name: "川楝子",
			x: 4,
			y: 19,
		},
		{
			id: "9952",
			name: "桂皮",
			x: 4,
			y: 20,
		},
		{
			id: "10042",
			name: "白茅根",
			x: 4,
			y: 21,
		},
		{
			id: "9885",
			name: "炮姜",
			x: 4,
			y: 22,
		},
		{
			id: "9929",
			name: "钩藤",
			x: 4,
			y: 23,
		},
		{
			id: "10313",
			name: "莱菔子",
			x: 4,
			y: 24,
		},
	];
					
	var e = [
		{
			id: "10155",
			name: "连翘",
			x: 5,
			y: 1,
		},
		{
			id: "9949",
			name: "黄柏",
			x: 5,
			y: 2,
		},
		{
			id: "10025",
			name: "芦根",
			x: 5,
			y: 3,
		},
		{
			id: "9759",
			name: "防风",
			x: 5,
			y: 4,
		},
		{
			id: "10052",
			name: "射干",
			x: 5,
			y: 5,
		},
		{
			id: "10437",
			name: "海藻",
			x: 5,
			y: 6,
		},
		{
			id: "9831",
			name: "白前",
			x: 5,
			y: 7,
		},
		{
			id: "12012",
			name: "威灵仙",
			x: 5,
			y: 8,
		},
		{
			id: "10059",
			name: "桑寄生",
			x: 5,
			y: 9,
		},
		{
			id: "10039",
			name: "千斤拨",
			x: 5,
			y: 10,
		},
		{
			id: "12022",
			name: "砂仁",
			x: 5,
			y: 11,
		},
		{
			id: "10228",
			name: "乌梅",
			x: 5,
			y: 12,
		},
		{
			id: "10318",
			name: "蛇床子",
			x: 5,
			y: 13,
		},
		{
			id: "9986",
			name: "盐杜仲",
			x: 5,
			y: 14,
		},
		{
			id: "10026",
			name: "续断",
			x: 5,
			y: 15,
		},
		{
			id: "9760",
			name: "党参",
			x: 5,
			y: 16,
		},
		{
			id: "9913",
			name: "白术",
			x: 5,
			y: 17,
		},
		{
			id: "12006",
			name: "肉桂(玉桂)",
			x: 5,
			y: 18,
		},
		{
			id: "10310",
			name: "吴茱萸",
			x: 5,
			y: 19,
		},
		{
			id: "10063",
			name: "苏木",
			x: 5,
			y: 20,
		},
		{
			id: "10053",
			name: "三菱",
			x: 5,
			y: 21,
		},
		{
			id: "10467",
			name: "五灵脂",
			x: 5,
			y: 22,
		},
		{
			id: "10024",
			name: "首乌藤",
			x: 5,
			y: 23,
		},
		{
			id: "10327",
			name: "稻芽",
			x: 5,
			y: 24,
		},
	];

	var f = [
		{
			id: "10062",
			name: "忍冬藤(银花藤)",
			x: 6,
			y: 1,
		},
		{
			id: "10179",
			name: "栀子",
			x: 6,
			y: 2,
		},
		{
			id: "10424",
			name: "细辛",
			x: 6,
			y: 3,
		},
		{
			id: "10139",
			name: "淡竹叶",
			x: 6,
			y: 4,
		},
		{
			id: "9769",
			name: "柴胡",
			x: 6,
			y: 5,
		},
		{
			id: "10157",
			name: "瓜蒌子",
			x: 6,
			y: 6,
		},
		{
			id: "10309",
			name: "紫苏子",
			x: 6,
			y: 7,
		},
		{
			id: "10354",
			name: "石韦",
			x: 6,
			y: 8,
		},
		{
			id: "10065",
			name: "白鲜皮",
			x: 6,
			y: 9,
		},
		{
			id: "10348",
			name: "透骨草",
			x: 6,
			y: 10,
		},
		{
			id: "10325",
			name: "木瓜",
			x: 6,
			y: 11,
		},
		{
			id: "10443",
			name: "茯神",
			x: 6,
			y: 12,
		},
		{
			id: "10194",
			name: "浮小麦",
			x: 6,
			y: 13,
		},
		{
			id: "9950",
			name: "杜仲",
			x: 6,
			y: 14,
		},
		{
			id: "10198",
			name: "菟丝子",
			x: 6,
			y: 15,
		},
		{
			id: "9743",
			name: "黄芪",
			x: 6,
			y: 16,
		},
		{
			id: "9859",
			name: "炒白术",
			x: 6,
			y: 17,
		},
		{
			id: "9776",
			name: "乌药",
			x: 6,
			y: 18,
		},
		{
			id: "10221",
			name: "化橘红",
			x: 6,
			y: 19,
		},
		{
			id: "9867",
			name: "山奈(沙姜)",
			x: 6,
			y: 20,
		},
		{
			id: "9778",
			name: "丹参",
			x: 6,
			y: 21,
		},
		{
			id: "10143",
			name: "红花",
			x: 6,
			y: 22,
		},
		{
			id: "10241",
			name: "炒酸枣仁",
			x: 6,
			y: 23,
		},
		{
			id: "9792",
			name: "山楂",
			x: 6,
			y: 24,
		},
	];

	var g = [
		{"id":"10555","name":"石膏","x":"7","y":"1"},
		{"id":"10038","name":"牡丹皮","x":"7","y":"2"},
		{"id":"10029","name":"知母","x":"7","y":"3"},
		{"id":"10060","name":"桂枝","x":"7","y":"4"},
		{"id":"9781","name":"玄参(元参)","x":"7","y":"5"},
		{"id":"9907","name":"平贝母","x":"7","y":"6"},
		{"id":"9904","name":"浙贝母","x":"7","y":"7"},
		{"id":"10170","name":"瓜蒌皮","x":"7","y":"8"},
		{"id":"12013","name":"独活","x":"7","y":"9"},
		{"id":"10031","name":"苍术","x":"7","y":"10"},
		{"id":"9777","name":"泽泻(文且)","x":"7","y":"11"},
		{"id":"10433","name":"茯苓","x":"7","y":"12"},
		{"id":"10275","name":"五味子","x":"7","y":"13"},
		{"id":"9765","name":"巴戟天","x":"7","y":"14"},
		{"id":"10198","name":"制何首乌","x":"7","y":"15"},
		{"id":"9856","name":"灸黄芪","x":"7","y":"16"},
		{"id":"9857","name":"灸甘草","x":"7","y":"17"},
		{"id":"10253","name":"莲子","x":"7","y":"18"},
		{"id":"10034","name":"木香","x":"7","y":"19"},
		{"id":"10040","name":"干姜","x":"7","y":"20"},
		{"id":"12003","name":"川牛膝","x":"7","y":"21"},
		{"id":"11992","name":"牛膝","x":"7","y":"22"},
		{"id":"10554","name":"龙骨","x":"7","y":"23"},
		{"id":"12045","name":"建曲(四川千方)","x":"7","y":"24"}
	];

	var h = [
		{"id":"9802","name":"白芷","x":"8","y":"1"},
		{"id":"9789","name":"赤芍","x":"8","y":"2"},
		{"id":"9811","name":"粉葛","x":"8","y":"3"},
		{"id":"11994","name":"板蓝根","x":"8","y":"4"},
		{"id":"9840","name":"川芎","x":"8","y":"5"},
		{"id":"10322","name":"南杏仁","x":"8","y":"6"},
		{"id":"10248","name":"苦杏仁","x":"8","y":"7"},
		{"id":"10054","name":"百部","x":"8","y":"8"},
		{"id":"10314","name":"地肤子","x":"8","y":"9"},
		{"id":"10047","name":"宽筋藤","x":"8","y":"10"},
		{"id":"9955","name":"厚朴","x":"8","y":"11"},
		{"id":"10041","name":"土茯苓","x":"8","y":"12"},
		{"id":"10165","name":"山萸肉","x":"8","y":"13"},
		{"id":"9898","name":"盐巴戟","x":"8","y":"14"},
		{"id":"9793","name":"当归","x":"8","y":"15"},
		{"id":"10337","name":"肉苁蓉(玉茸)","x":"8","y":"16"},
		{"id":"9746","name":"甘草","x":"8","y":"17"},
		{"id":"9785","name":"百合","x":"8","y":"18"},
		{"id":"10300","name":"佛手","x":"8","y":"19"},
		{"id":"10303","name":"陈皮","x":"8","y":"20"},
		{"id":"10058","name":"鸡血藤","x":"8","y":"21"},
		{"id":"9837","name":"醋延胡索(醋元胡)","x":"8","y":"22"},
		{"id":"10513","name":"牡蛎","x":"8","y":"23"},
		{"id":"10500","name":"鸡内金","x":"8","y":"24"}
	];

	var i = [
		{"id":"10135","name":"桑叶(双叶)","x":"9","y":"1"},
		{"id":"12027","name":"决明子","x":"9","y":"2"},
		{"id":"10144","name":"野菊花(甘菊)","x":"9","y":"3"},
		{"id":"10412","name":"薄荷","x":"9","y":"4"},
		{"id":"","name":"木棉花","x":"9","y":"5"},
		{"id":"9780","name":"桔梗","x":"9","y":"6"},
		{"id":"12036","name":"法半夏","x":"9","y":"7"},
		{"id":"10321","name":"胖大海","x":"9","y":"8"},
		{"id":"10558","name":"滑石粉","x":"9","y":"9"},
		{"id":"10557","name":"滑石","x":"9","y":"10"},
		{"id":"10163","name":"车前子","x":"9","y":"11"},
		{"id":"10200","name":"赤小豆","x":"9","y":"12"},
		{"id":"10204","name":"芡实","x":"9","y":"13"},
		{"id":"10043","name":"狗脊","x":"9","y":"14"},
		{"id":"9888","name":"当归只","x":"9","y":"15"},
		{"id":"9881","name":"酒黄精","x":"9","y":"16"},
		{"id":"12055","name":"醋鳖甲","x":"9","y":"17"},
		{"id":"9779","name":"麦冬","x":"9","y":"18"},
		{"id":"10032","name":"醋香附","x":"9","y":"19"},
		{"id":"10319","name":"枳实","x":"9","y":"20"},
		{"id":"10045","name":"郁金","x":"9","y":"21"},
		{"id":"10035","name":"莪术","x":"9","y":"22"},
		{"id":"10497","name":"煅牡蛎","x":"9","y":"23"},
		{"id":"10231","name":"炒麦芽","x":"9","y":"24"}
	];

	var j = [
		{"id":"9790","name":"黄芩","x":"10","y":"1"},
		{"id":"10089","name":"菊花","x":"10","y":"2"},
		{"id":"10122","name":"金银花","x":"10","y":"3"},
		{"id":"10087","name":"山银花","x":"10","y":"4"},
		{"id":"10428","name":"半枝莲","x":"10","y":"5"},
		{"id":"10273","name":"姜半夏","x":"10","y":"6"},
		{"id":"9766","name":"前胡","x":"10","y":"7"},
		{"id":"10064","name":"桑白皮","x":"10","y":"8"},
		{"id":"10027","name":"苦参","x":"10","y":"9"},
		{"id":"10050","name":"鸡骨草","x":"10","y":"10"},
		{"id":"10147","name":"玉米须","x":"10","y":"11"},
		{"id":"10149","name":"薏苡仁","x":"10","y":"12"},
		{"id":"10267","name":"金樱子","x":"10","y":"13"},
		{"id":"10269","name":"桑椹","x":"10","y":"14"},
		{"id":"9774","name":"熟地","x":"10","y":"15"},
		{"id":"9748","name":"生地","x":"10","y":"16"},
		{"id":"10415","name":"淫羊藿","x":"10","y":"17"},
		{"id":"10421","name":"墨旱莲","x":"10","y":"18"},
		{"id":"9995","name":"黑顺片","x":"10","y":"19"},
		{"id":"10308","name":"枳壳","x":"10","y":"20"},
		{"id":"10094","name":"愧花","x":"10","y":"21"},
		{"id":"10136","name":"艾叶","x":"10","y":"22"},
		{"id":"10466","name":"僵蚕","x":"10","y":"23"},
		{"id":"10231","name":"麦芽","x":"10","y":"24"}
	];

	var k = [
		{"id":"9829","name":"猫爪草","x":"11","y":"10"},
		{"id":"9843","name":"千年健","x":"11","y":"11"},
		{"id":"12006","name":"肉桂(玉桂)","x":"11","y":"12"},
		{"id":"","name":"紫石英","x":"11","y":"13"},
		{"id":"10473","name":"鹿角霜","x":"11","y":"14"},
		{"id":"","name":"穿破石","x":"11","y":"15"},
		{"id":"","name":"莲须","x":"11","y":"16"},
		{"id":"","name":"沉香","x":"11","y":"17"},
		{"id":"9858","name":"灸党参","x":"11","y":"18"},
		{"id":"10411","name":"仙鹤草","x":"11","y":"19"},
		{"id":"","name":"人参叶","x":"11","y":"20"},
		{"id":"","name":"煅龙骨","x":"11","y":"21"},
		{"id":"","name":"琥珀","x":"11","y":"22"}
	];

	var l = [
		{"id":"9956","name":"秦皮","x":"12","y":"1"},
		{"id":"","name":"蛇蜕","x":"12","y":"2"},
		{"id":"","name":"密蒙花","x":"12","y":"3"},
		{"id":"","name":"鹿衔草","x":"12","y":"4"},
		{"id":"9847","name":"毛冬青","x":"12","y":"5"},
		{"id":"","name":"银柴胡","x":"12","y":"6"},
		{"id":"9825","name":"高良姜","x":"12","y":"7"},
		{"id":"9841","name":"绵马贯众","x":"12","y":"8"},
		{"id":"9849","name":"白薇","x":"12","y":"9"},
		{"id":"10384","name":"谷精草","x":"12","y":"10"},
		{"id":"10450","name":"五倍子","x":"12","y":"11"},
		{"id":"","name":"炒白芍","x":"12","y":"12"},
		{"id":"","name":"芒果核","x":"12","y":"13"},
		{"id":"10196","name":"荔枝核","x":"12","y":"14"},
		{"id":"","name":"独脚金","x":"12","y":"15"},
		{"id":"9985","name":"山慈菇","x":"12","y":"16"},
		{"id":"","name":"桔核","x":"12","y":"17"},
		{"id":"9943","name":"两面针(入地金牛)","x":"12","y":"18"},
		{"id":"12039","name":"南五味子","x":"12","y":"19"},
		{"id":"9788","name":"藕节","x":"12","y":"20"},
		{"id":"9897","name":"南沙参","x":"12","y":"21"},
		{"id":"","name":"归尾","x":"12","y":"22"},
		{"id":"10361","name":"穿心莲","x":"12","y":"23"},
		{"id":"","name":"茜草","x":"12","y":"24"}
	];

	var m = [
		{"id":"","name":"火炭母","x":"13","y":"1"},
		{"id":"10351","name":"木贼","x":"13","y":"2"},
		{"id":"12031","name":"肉豆蔻(肉扣)","x":"13","y":"3"},
		{"id":"10480","name":"水牛角","x":"13","y":"4"},
		{"id":"","name":"荜茇","x":"13","y":"5"},
		{"id":"","name":"槐角","x":"13","y":"6"},
		{"id":"","name":"大血藤","x":"13","y":"7"},
		{"id":"","name":"土牛藤","x":"13","y":"8"},
		{"id":"10428","name":"半边莲","x":"13","y":"9"},
		{"id":"","name":"鸡蛋花","x":"13","y":"10"},
		{"id":"9954","name":"广东海桐皮","x":"13","y":"11"},
		{"id":"","name":"豨签草","x":"13","y":"12"},
		{"id":"","name":"青箱子","x":"13","y":"13"},
		{"id":"10258","name":"广王不留行","x":"13","y":"14"},
		{"id":"","name":"冬葵果","x":"13","y":"15"},
		{"id":"9958","name":"冬瓜皮","x":"13","y":"16"},
		{"id":"9862","name":"山豆根","x":"13","y":"17"},
		{"id":"10475","name":"瓦楞子","x":"13","y":"18"},
		{"id":"12007","name":"香加皮","x":"13","y":"19"},
		{"id":"","name":"山葡萄","x":"13","y":"20"},
		{"id":"9817","name":"石榴皮","x":"13","y":"21"},
		{"id":"9880","name":"白蔹","x":"13","y":"22"},
		{"id":"","name":"土茵陈","x":"13","y":"23"},
		{"id":"10462","name":"蜂房","x":"13","y":"24"}
	];

	var n = [
		{"id":"","name":"广升麻","x":"14","y":"1"},
		{"id":"10346","name":"紫花地丁","x":"14","y":"2"},
		{"id":"9848","name":"香薷","x":"14","y":"3"},
		{"id":"9758","name":"白头翁","x":"14","y":"4"},
		{"id":"9865","name":"岗梅","x":"14","y":"5"},
		{"id":"10254","name":"淡豆豉","x":"14","y":"6"},
		{"id":"10055","name":"紫苏梗","x":"14","y":"7"},
		{"id":"9816","name":"徐长卿(蓼刁竹)","x":"14","y":"8"},
		{"id":"","name":"粉萆薢","x":"14","y":"9"},
		{"id":"9814","name":"制川乌","x":"14","y":"10"},
		{"id":"9959","name":"五加皮","x":"14","y":"11"},
		{"id":"12025","name":"大腹皮","x":"14","y":"12"},
		{"id":"10036","name":"大黄","x":"14","y":"13"},
		{"id":"10307","name":"火麻仁","x":"14","y":"14"},
		{"id":"10191","name":"郁李仁","x":"14","y":"15"},
		{"id":"","name":"土荆皮","x":"14","y":"16"},
		{"id":"","name":"石楠藤","x":"14","y":"17"},
		{"id":"","name":"春光藤","x":"14","y":"18"},
		{"id":"","name":"千里光","x":"14","y":"19"},
		{"id":"10142","name":"龙脷叶","x":"14","y":"20"},
		{"id":"","name":"旋覆花","x":"14","y":"21"},
		{"id":"10046","name":"石决明","x":"14","y":"22"},
		{"id":"10527","name":"磁石","x":"14","y":"23"},
		{"id":"10514","name":"珍珠母","x":"14","y":"24"}
	];
	var zy = [].concat(a,b,c,d,e,f,g,h,i,j,k,l,m,n);

	localStorage.setItem('dsl_zy',JSON.stringify(zy));

	// alert("初始化完成！！");
}

function initialis_pre(){
	var zyf = [
		{
			name: "林爱惜",
			desc: '顾客林爱惜的常配药方',
			zys: [
				{'id': "9743",'name': "黄芪",'x': '6','y': '16','num': '15g'},
				{"id":"9746","name":"甘草","x":"8","y":"17",'num': '6g'},
				{'id': "9806",'name': "玉竹",'x': '2','y': '16','num': '15g'},
				{"id":"10308","name":"枳壳","x":"10","y":"20",'num': '6g'},
				{"id":"","name":"沉香","x":"11","y":"17",'num': '3g'},
				{'id': "9760",'name': "党参",'x': '5','y': '16','num': '15g'},
				{"id":"9840","name":"川芎","x":"8","y":"5",'num': '12g'},
				{"id":"10319","name":"枳实","x":"9","y":"20",'num': '6g'},
				{'id': "9744",'name': "山药",'x': '4','y': '17','num': '12g'},
			]
		}
	];
	localStorage.setItem("dsl_zyf",JSON.stringify(zyf));
}

function initialis(){
	window.initData = {};
	window.initData.saveZy = function(){
		localStorage.setItem('dsl_zy',JSON.stringify(window.initData.zy));
	}
	window.initData.saveZyf = function(){
		localStorage.setItem('dsl_zyf',JSON.stringify(window.initData.zyf));
	}
	if(localStorage.getItem("dsl_init")=='true'){
		window.initData.zy = JSON.parse(localStorage.getItem('dsl_zy'));
		window.initData.zyf = JSON.parse(localStorage.getItem('dsl_zyf'));
		return false;
	}
	initialis_li();
	initialis_pre();
	localStorage.setItem('dsl_init','true');
	window.initData.zy = JSON.parse(localStorage.getItem('dsl_zy'));
	window.initData.zyf = JSON.parse(localStorage.getItem('dsl_zyf'));
	return true;
}

